import os
import unittest
from config.config import DATA_PATH
from cases.Base_Case import BASECASE
from page.index import IndexPage
from page.住院管理.作废结算.zuofeijiesuan__page import zuofeijiesuan
from tools.sjqd_way import read_data_from_excel
class TestZuofeijiesuan(BASECASE):
    @classmethod
    def setUpClass(cls):
        ap = IndexPage()
        ap.jrym_no1('作废结算')
    @classmethod
    def tearDownClass(cls):
        ap = IndexPage()
        ap.close_all_xxk()
        print("{}执行完毕-------------------------------------------------".format(cls))
    def test_zuofeijiesuan(self):
        self.data = read_data_from_excel(os.path.join(DATA_PATH, "datas.xls"), "出院患者住院号")
        zyh = self.data[0][0]
        bp = zuofeijiesuan()
        bp.input_zyh(zyh)
        bp.click_cx_btn()#点击查询
        bp.click_zfjs_btn()#点击作废结算
        bp.close_window()#关闭窗口
if __name__ == '__main__':
    unittest.main()


